generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Add dismissTooltip callback to custom content renderers #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add dismissTooltip callback function to tooltip content renderers (point, header, footer, body) allowing custom content to programmatically dismiss tooltips. This enables interactive elements like buttons within tooltips to close the tooltip when clicked.
pan-kot
reviewed
Nov 4, 2025
- Rename dismissTooltip to hideTooltip in header, body, footer, and point tooltip renderers - Refactor tooltip tests to use parameterized tests (test.each) for both line and pie chart types, improving test maintainability
pan-kot
reviewed
Nov 11, 2025
Pixselve
commented
Nov 11, 2025
pan-kot
approved these changes
Nov 17, 2025
Merged
via the queue into
cloudscape-design:main
with commit Nov 17, 2025
0e235d0
42 of 44 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add dismissTooltip callback function to tooltip content renderers (point, header, footer, body) allowing custom content to programmatically dismiss tooltips. This enables interactive elements like buttons within tooltips to close the tooltip when clicked.
In CloudWatch, we have buttons in the tooltip that opens drawers/open new pages. There is no current way to close the tooltip after such actions.
Result
2025-11-04_10-01-13.mp4
How has this been tested?
Review checklist
Correctness
CONTRIBUTING.md.CONTRIBUTING.md.Security
checkSafeUrlfunction.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.